import request from '@/utils/request'

/**
 * 保存地址
 */
export function addressAdd (params) {
  return request.post('/address/add', params)
}

/**
 * 修改订单地址
 */
export function updateOrderAddress (params) {
  return request.post('/address/updateOrderAddress', params)
}

/**
 * 获取默认地址
 */
export function defaultAddress (params) {
  return request.post('/address/defaultAddress', params)
}

/**
 * 获取地址列表
 */
export function getAddresslist (params) {
  return request.post('/address/addresslist', params)
}

/**
 * 获取单条地址信息
*/
export function singleAddress (params) {
  return request.post('/address/singleAddress', params)
}

/**
 * 修改单条地址信息
*/
export function updateSingleAddress (params) {
  return request.post('/address/updateSingleAddress', params)
}

/**
 * 修改单条地址信息
*/
export function deleteSingleAddress (params) {
  return request.post('/address/deleteSingleAddress', params)
}
